package com.zelix;

import java.io.*;
import java.util.Enumeration;
import java.util.Vector;


public final class nh
{

    public nh(it it, wu wu, boolean flag, String s1, PrintWriter printwriter)
    {
label0:
        {
            super();
            d = new Vector();
            e = new Vector();
            f = new Vector();
            g = new Vector();
            h = new Vector();
            i = new Vector();
            j = new Vector();
            k = new Vector();
            l = new Vector();
            a = it;
            b = wu;
            m = flag;
            try
            {
                a(B[9], B[7], B[8], zo.h);
            }
            catch(tb tb1) { }
            if(s1 == null)
            {
                s = B[4];
                if(si.g == 0)
                    break label0;
            }
            s = s1;
        }
        s = (new File(s)).getAbsolutePath();
        c = printwriter;
    }

    public nh(it it, wu wu, boolean flag, String s1, String s2, String s3, String s4, 
            String s5, boolean flag1, boolean flag2)
        throws tb
    {
        int i1;
        boolean flag3;
label0:
        {
            flag3 = iu.q;
            i1 = si.g;
            super();
            d = new Vector();
            e = new Vector();
            f = new Vector();
            g = new Vector();
            h = new Vector();
            i = new Vector();
            j = new Vector();
            k = new Vector();
            l = new Vector();
            a = it;
            b = wu;
            m = flag;
            n = flag1;
            z = flag2;
            a(s2, s3, s4, s5);
            if(s1 == null)
            {
                s = B[4];
                if(i1 == 0)
                    break label0;
            }
            s = oc.b(oc.c(s1));
        }
label1:
        {
            if(oc.a(s))
            {
                s = (new File(w, s)).getAbsolutePath();
                if(i1 == 0)
                    break label1;
            }
            s = (new File(s)).getAbsolutePath();
        }
        try
        {
            File file = new File(s);
            File file1 = file.getParentFile();
            if(!file1.exists())
                kc.a(file1.getAbsolutePath());
            c = new PrintWriter(new FileWriter(file), true);
        }
        catch(IOException ioexception)
        {
            throw new tb(B[2] + s + B[3] + ioexception);
        }
        if(s5 != null)
            c(B[1] + w.getAbsolutePath() + "'" + zo.e);
        if(vh.e != 0)
            si.g = ++i1;
        if(gs.b != 0)
            iu.q = !flag3;
    }

    public void a(gj gj)
    {
        d.addElement(gj);
    }

    public void b(gj gj)
    {
        j.addElement(gj);
    }

    public void c(gj gj)
    {
        k.addElement(gj);
    }

    public void d(gj gj)
    {
        l.addElement(gj);
    }

    public void e(gj gj)
    {
        h.addElement(gj);
    }

    public void f(gj gj)
    {
        i.addElement(gj);
    }

    public void g(gj gj)
    {
        e.addElement(gj);
    }

    public void h(gj gj)
    {
        g.addElement(gj);
    }

    public void i(gj gj)
    {
        f.addElement(gj);
    }

    public void a()
    {
        x = null;
        A = null;
    }

    public void b()
    {
        c.close();
    }

    private void a(String s1, String s2, String s3, String s4)
        throws tb
    {
        int i1;
label0:
        {
            i1 = si.g;
            if(s4 != null)
            {
                w = new File(oc.b(oc.c(s4)));
                if(!w.exists() || !w.isDirectory())
                    throw new tb(B[5] + w.getAbsolutePath() + B[6]);
            } else
            {
                w = new File(zo.h);
            }
            if(s1 == null)
            {
                t = B[9];
                if(i1 == 0)
                    break label0;
            }
            t = oc.b(oc.c(s1));
        }
label1:
        {
            if(oc.a(t))
            {
                t = (new File(w, t)).getAbsolutePath();
                if(i1 == 0)
                    break label1;
            }
            t = (new File(t)).getAbsolutePath();
        }
label2:
        {
            if(s2 == null)
            {
                u = B[7];
                if(i1 == 0)
                    break label2;
            }
            u = oc.b(oc.c(s2));
        }
label3:
        {
            if(oc.a(u))
            {
                u = (new File(w, u)).getAbsolutePath();
                if(i1 == 0)
                    break label3;
            }
            u = (new File(u)).getAbsolutePath();
        }
label4:
        {
            if(s3 == null)
            {
                v = B[8];
                if(i1 == 0)
                    break label4;
            }
            v = oc.b(oc.c(s3));
        }
label5:
        {
            if(oc.a(v))
            {
                v = (new File(w, v)).getAbsolutePath();
                if(i1 == 0)
                    break label5;
            }
            v = (new File(v)).getAbsolutePath();
        }
    }

    public void a(String s1)
    {
        String s2 = B[10] + s1;
        System.err.println(s2);
        c.println(s2);
        c.close();
        if(n)
        {
            throw new z0(s2);
        } else
        {
            System.exit(1);
            return;
        }
    }

    public it c()
    {
        return a;
    }

    public wu d()
    {
        return b;
    }

    public String e()
    {
        return u;
    }

    public File f()
    {
        return w;
    }

    public String g()
    {
        return v;
    }

    public int h()
    {
        return q;
    }

    public Vector i()
    {
        return d;
    }

    public Vector j()
    {
        return j;
    }

    public Vector k()
    {
        return k;
    }

    public Vector l()
    {
        return l;
    }

    public String m()
    {
        return s;
    }

    public PrintWriter n()
    {
        return c;
    }

    public String o()
    {
        StringBuffer stringbuffer;
        int i1;
        Enumeration enumeration;
        int j1;
        j1 = si.g;
        if(x == null)
            return null;
        stringbuffer = new StringBuffer();
        i1 = 0;
        enumeration = x.d();
        if(j1 == 0) goto _L2; else goto _L1
_L1:
        if(i1 > 0)
            stringbuffer.append(zo.e);
        stringbuffer.append((String)enumeration.nextElement());
        i1++;
_L2:
        if(!enumeration.hasMoreElements())
            return stringbuffer.toString();
        if(true) goto _L1; else goto _L3
_L3:
    }

    public int p()
    {
        return o;
    }

    public Vector q()
    {
        return h;
    }

    public String a()
    {
        StringBuffer stringbuffer;
        int i1;
        Enumeration enumeration;
        int j1;
        j1 = si.g;
        if(A == null)
            return null;
        stringbuffer = new StringBuffer();
        i1 = 0;
        enumeration = A.d();
        if(j1 == 0) goto _L2; else goto _L1
_L1:
        if(i1 > 0)
            stringbuffer.append(zo.e);
        stringbuffer.append((String)enumeration.nextElement());
        i1++;
_L2:
        if(!enumeration.hasMoreElements())
            return stringbuffer.toString();
        if(true) goto _L1; else goto _L3
_L3:
    }

    public int r()
    {
        return r;
    }

    public Vector s()
    {
        return i;
    }

    public Vector t()
    {
        return e;
    }

    public String u()
    {
        return t;
    }

    public Vector v()
    {
        return g;
    }

    public Vector w()
    {
        return f;
    }

    public int x()
    {
        return p;
    }

    public boolean y()
    {
        return n;
    }

    public boolean a()
    {
        return z;
    }

    public boolean z()
    {
        return m;
    }

    public void a(String s1, boolean flag)
    {
        String s2 = (flag ? "\t" : "") + s1;
        c.println(s2);
    }

    public void b(String s1)
    {
        b(s1, false);
    }

    public void b(String s1, boolean flag)
    {
        String s2 = (flag ? "\t" : "") + B[11] + s1;
        if(x == null)
            x = new jy();
        Object obj = x.put(s2, s2);
        if(obj == null)
        {
            c.println(s2);
            q++;
        }
    }

    public void c(String s1)
    {
        c(s1, false);
    }

    public void c(String s1, boolean flag)
    {
        String s2 = B[12] + (flag ? "\t" : "") + s1;
        if(x == null)
            x = new jy();
        Object obj = x.put(s2, s2);
        if(obj == null)
        {
            o++;
            c.println(s2);
        }
    }

    public void d(String s1)
    {
        d(s1, false);
    }

    public void d(String s1, boolean flag)
    {
        String s2 = (flag ? "\t" : "") + B[11] + s1;
        if(x == null)
            x = new jy();
        if(A == null)
            A = new jy();
        Object obj = x.put(s2, s2);
        if(obj == null)
        {
            c.println(s2);
            A.put(s2, s2);
            r++;
        }
    }

    public void e(String s1)
    {
        e(s1, false);
    }

    public void e(String s1, boolean flag)
    {
        String s2 = (flag ? "\t" : "") + B[0] + s1;
        if(x == null)
            x = new jy();
        Object obj = x.put(s2, s2);
        if(obj == null)
        {
            p++;
            c.println(s2);
        }
    }

    public void A()
    {
        d = new Vector();
        f = new Vector();
    }

    public void B()
    {
        j = new Vector();
    }

    public void C()
    {
        k = new Vector();
    }

    public void D()
    {
        l = new Vector();
    }

    public void E()
    {
        h = new Vector();
    }

    public void F()
    {
        i = new Vector();
    }

    public void G()
    {
        e = new Vector();
        g = new Vector();
    }

    private it a;
    private wu b;
    private PrintWriter c;
    private Vector d;
    private Vector e;
    private Vector f;
    private Vector g;
    private Vector h;
    private Vector i;
    private Vector j;
    private Vector k;
    private Vector l;
    private boolean m;
    private boolean n;
    private boolean z;
    private int o;
    private int p;
    private int q;
    private int r;
    private String s;
    private String t;
    private String u;
    private String v;
    private File w;
    private jy x;
    private jy A;
    public static boolean y;
    private static String B[];

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x6f;
                    break;
                case 1:
                    key = 38;
                    break;
                case 2:
                    key = 1;
                    break;
                case 3:
                    key = 7;
                    break;
                default:
                    key = 33;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[];
        as = new String[13];
        as[0] = "8gSIh!a;'";
        as[1] = "+CgfT\003R!cH\035CbsN\035_!tD\033\006uh\001H";
        as[2] = "#If'G\006Jd'\003";
        as[3] = "M\006bhT\003B!iN\033\006cb\001\000VdiD\013\006;'";
        as[4] = "5mLXM\000A/sY\033";
        as[5] = "*tSHsU\006EbG\016Sms\001\013OsbB\033Is~\001M";
        as[6] = "M\006ehD\034\006ohUOCynR\033\006nu\001\006R!nROHns\001\016\006enS\nEuhS\026";
        as[7] = "\013CgfT\003RD\177B\003Seb\017\033^u";
        as[8] = "\013CgfT\003RUuH\002cydM\032Bd)U\027R";
        as[9] = "5mLXu\035OlKN\b\bu\177U";
        as[10] = ")gUFmOcSUn=\034!";
        as[11] = "*tSHsU\006";
        as[12] = "\"cRT`(c;'";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        B = as;

    }
}